<?php
/**
 * Created by PhpStorm.
 * User: root
 * Date: 8/15/14
 * Time: 11:49 AM
 */

namespace Admin\Form\Category;
use Zend\Form\Fieldset;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;

use Admin\Form\Category\CreateCategoryFieldset;

class CreateCategoryFieldsetService extends Fieldset implements FactoryInterface
{
    public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $createCategoryFieldset = new CreateCategoryFieldset($serviceLocator);
        die(print_r($createCategoryFieldset->getName()));
        return $createCategoryFieldset->getObject();
    }
} 